package com.edu.hubu.graduationdesign.controller;

import com.edu.hubu.graduationdesign.entity.IdleAdvertising;
import com.edu.hubu.graduationdesign.service.IdleAdvertisingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @date: 2022/1/21 18:01
 * @author: towards
 * @since JDK 1.8
 */
@RestController
@RequestMapping("IdleAdvertising")
public class IdleAdvertisingController {

    @Autowired
    private IdleAdvertisingService idleAdvertisingService;

    @GetMapping("all")
    public List<IdleAdvertising> listAll(){
        return idleAdvertisingService.listAll();
    }


}
